const { app, BrowserWindow, nativeTheme } = require("electron");
const createWindow = () => {
  const win = new BrowserWindow({
    width: 1200,
    height: 600,
    backgroundColor: "#000000",
    webPreferences: {
      devTools: false,
    },
  });

  win.maximize();
  win.loadURL("https://bj.timpaik.top:50004/");
};
app.whenReady().then(() => {
  createWindow();

  app.on("activate", () => {
    if (BrowserWindow.getAllWindows().length === 0) createWindow();
  });
});
app.on("window-all-closed", () => {
  if (process.platform !== "darwin") app.quit();
});
